<?php get_header(); ?>
<div class="wrap">
	<div class="main welcome">
	<div class="slide" id="slides">
		<div class="slides_container">
			<?php $recent = new wp_query(array('post__in' => get_option('sticky_posts'), 'posts_per_page' => 5, 'caller_get_posts' => 1)); while($recent->have_posts()) : $recent->the_post();?>
			<div class="item">
				<div class="text">
					<div class="cap">
						<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><span><?php
		$info_name = get_post_meta($post->ID, 'name', true);
		$info_id = get_the_author_meta( 'ID' );
		if ( $info_id == 2 ):
			if ( $info_name != '' ):
				echo '@' . $info_name;
			endif;
		else:
	?>
	@<a href="<?php echo get_author_posts_url( $info_id );?>" title="查看 <?php the_author();?> 专栏" rel="bookmark"><?php echo get_the_author();?></a>
	<?php endif;?></span></h3>
					</div>
				</div>
				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_post_thumbnail('large'); ?></a>
			</div>
			<?php endwhile; ?>
		</div>
		<a href="#" class="prev btn"></a><a href="#" class="next btn"></a>
	</div>
<?php query_posts(array('paged' => (get_query_var('paged')) ? get_query_var('paged') : 1, 'category__not_in' => array(126,514), 'showposts' => 10, 'post__not_in' => get_option( 'sticky_posts' ) )); while (have_posts()) : the_post(); ?>
		<div class="post">
			<?php if ( get_the_title() != '' ) : ?><h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2><?php endif; ?>
			<div class="content">
				<?php if ( get_the_post_thumbnail() != '' ) : ?><a href="<?php the_permalink(); ?>" class="pic"><?php the_post_thumbnail('thumbnail'); ?></a><?php endif;?>
				<?php echo nl2br( txtjee_substr( strip_tags( str_replace('　' , '' , get_the_excerpt() ) ) , 140 ) ); ?>
				<div class="more"><a href="<?php the_permalink() ?>" rel="bookmark">阅读全部内容→</a></div>
			</div>
			<div class="meta">
				<?php the_tags('<div class="tags">','','</div>'); ?>
				<?php include("includes/post-info.php"); ?>
			</div>
		</div>
<?php endwhile; ?>
	</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>